# Maintainer:
pkgname=eboard
pkgver=1.1.3
pkgrel=1
pkgdesc="Chess board interface for Internet Chess Servers"
url="https://github.com/fbergo/eboard"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	gstreamer-dev
	gtk+2.0-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/fbergo/eboard/archive/refs/tags/v$pkgver.tar.gz
	$pkgname-fix-linking.patch::https://github.com/fbergo/eboard/commit/e529c55af7463f9169d9f36f5fc5cdbafccd66b6.diff
	"
options="!check" # does not have tests

build() {
	# not autotools
	./configure \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
	mv "$pkgdir"/usr/man "$pkgdir"/usr/share/man
}

sha512sums="
c89e234d35de9f52047dbdf370cd47d88f6135880985503c2a77602a67ced3a35f64e1803d36c337a505b5d7cc22a5c02c4ef776b187841c417511110e321fe3  eboard-1.1.3.tar.gz
43e0194c237f9281ae814edd74da9e88fb0b16d74d66e490e61df4b3db82548cc667200255eb4440dbd74862a3f47f34c6e1ba3c4b695e2dc40b26f2f5e30d06  eboard-fix-linking.patch
"
